package com.zhonghui.mes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhonghui.common.annotation.Excel;
import com.zhonghui.common.core.domain.BaseEntity;

/**
 * 制造执行MES-领料申请明细对象 mes_material_apply_item
 * 
 * @author zhonghui
 * @date 2024-11-12
 */
public class MesMaterialApplyItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 领料申请id */
    @Excel(name = "领料申请id")
    private Long applyId;

    /** 物料档案id */
    @Excel(name = "物料档案id")
    private Long materialId;

    /** 需求数量 */
    @Excel(name = "需求数量")
    private Long dosage;

    /** 已领数量 */
    @Excel(name = "已领数量")
    private Long receivedQuantity;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setApplyId(Long applyId) 
    {
        this.applyId = applyId;
    }

    public Long getApplyId() 
    {
        return applyId;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setDosage(Long dosage) 
    {
        this.dosage = dosage;
    }

    public Long getDosage() 
    {
        return dosage;
    }
    public void setReceivedQuantity(Long receivedQuantity) 
    {
        this.receivedQuantity = receivedQuantity;
    }

    public Long getReceivedQuantity() 
    {
        return receivedQuantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("applyId", getApplyId())
            .append("materialId", getMaterialId())
            .append("dosage", getDosage())
            .append("receivedQuantity", getReceivedQuantity())
            .append("remark", getRemark())
            .toString();
    }
}
